﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true"
    CodeFile="QuestionPosting.aspx.cs" Inherits="QuestionPosting" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td>
            <div id="templatemo_content_wrapper">
                <div id="templatemo_content_high">
                    <div class="content_box">
                        <table cellpadding="0" cellspacing="0" width="900px" align="center">
                            <tr>
                                <td style="font-family: Calibri; font-size: 18px; font-weight: bold; color: #009999"
                                    align="center">
                                    <h2>
                                        Post Questions</h2>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="750px" align="center">
                                        <tr>
                                            <td height="30px" align="left" width="100px">
                                                Category
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList Width="200px" ID="ddlCatagory" runat="server" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlCatagory_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td height="30px" align="left" width="100px">
                                                Practice Test
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList Width="200px" ID="ddlPractice" runat="server" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlPractice_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Button ID="btnAdd" runat="server" Text="Add" Visible="False" OnClick="btnAdd_Click" />
                                            </td>
                                            <td colspan="4" align="left">
                                                <asp:TextBox ID="txtAdd" runat="server" Width="200px" Visible="False"></asp:TextBox>
                                                <asp:TextBox ID="txtPractice" runat="server" Width="200px" Visible="False"></asp:TextBox>
                                                <asp:Button ID="btnPracticeAdd" runat="server" Text="Add" Visible="False" OnClick="btnPracticeAdd_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30px" align="left" width="100px">
                                                Content
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList Width="200px" ID="ddlContent" runat="server" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlContent_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td height="30px" align="left" width="100px">
                                                Skills
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList Width="200px" ID="ddlSkills" runat="server" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlSkills_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30px" align="right">
                                                <asp:Button ID="btnConadd" runat="server" Text="Add" Visible="False" OnClick="btnConadd_Click" />
                                            </td>
                                            <td colspan="4" align="left">
                                                <asp:TextBox ID="txtContent" runat="server" Width="200px" Visible="False"></asp:TextBox>
                                                <asp:TextBox ID="txtSkills" runat="server" Width="200px" Visible="False"></asp:TextBox>
                                                <asp:Button ID="btnSkillAdd" runat="server" Text="Add" Visible="False" OnClick="btnSkillAdd_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30px" align="left" width="100px">
                                                Choose the level
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList Width="200px" ID="ddlLevel" runat="server" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlLevel_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30px" align="left" width="100px">
                                            </td>
                                            <td colspan="4" align="left">
                                                <asp:TextBox ID="txtLevel" runat="server" Width="200px" Visible="False"></asp:TextBox>
                                                <asp:Button ID="btnLevelAdd" runat="server" Text="Add" Visible="False" OnClick="btnLevelAdd_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Question
                                            </td>
                                            <td align="left" colspan="3">
                                                <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" Height="75px" Width="350px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Insert Options
                                            </td>
                                            <td align="left" colspan="3">
                                                <asp:TextBox ID="txtOption" runat="server" Width="200px"></asp:TextBox>
                                                <asp:Button ID="btnAnswerAdd" runat="server" OnClick="btnAnswerAdd_Click" Text="Add" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="4">
                                                <asp:GridView ID="grdAnswers" runat="server" BackColor="White" BorderColor="#999999"
                                                    BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical"
                                                    AutoGenerateDeleteButton="True" OnRowDeleting="grdAnswers_RowDeleting">
                                                    <AlternatingRowStyle BackColor="#CCCCCC" />
                                                    <FooterStyle BackColor="#CCCCCC" />
                                                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                    <SortedAscendingHeaderStyle BackColor="#808080" />
                                                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                    <SortedDescendingHeaderStyle BackColor="#383838" />
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Answer
                                            </td>
                                            <td colspan="3" align="left">
                                                <asp:TextBox ID="txtAnswer" runat="server" Width="200px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Image
                                            </td>
                                            <td align="left" colspan="3">
                                                <asp:FileUpload ID="fuImage" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30px" align="left" width="100px">
                                                Solution
                                            </td>
                                            <td colspan="4" align="left" class="style2">
                                                <asp:TextBox ID="txtSolution" runat="server" TextMode="MultiLine" Height="75px" Width="350px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" align="center" height="25px">
                                                <asp:Label ID="lbregister" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" align="center">
                                                <asp:Button ID="btnsubmit" runat="server" Text="Post Question" OnClick="btnsubmit_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</asp:Content>
